package com.java.zhuiyun.api.recommendedCourse.controller;

import com.java.zhuiyun.api.recommendedCourse.service.RecommendedCourseService;
import com.java.zhuiyun.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName RecommendedCourse
 * @Description TODO PC端推荐课程
 * @Author WX
 * @Date 2023/8/21 9:20
 **/
@RestController
@RequestMapping("/recommendedCourse")
@CrossOrigin
public class RecommendedCourseController {
    @Autowired
    private RecommendedCourseService recommendedCourseService;

    /*
    * @Author WX
    * @Description 推荐课程随机查询三条
    * @Date 2023/8/21 9:34
    * @Return
    * @param null
    */
    @RequestMapping("/randonThree")
    public CommonResult randonThree(){
        return CommonResult.ok(recommendedCourseService.randonThree());
    }
}
